#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <cmath>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_pushButton_clicked();

private:
    Ui::Widget *ui;

    double fun(double x);
    void solve_div();
    void solve_rom();
    double val[100][100];
    int len;
};

#endif // WIDGET_H
